package com.xiaoq.distribution.repository;

import java.util.List;

import com.xiaoq.distribution.entity.DistributorEntity;
import com.xiaoq.vo.PagingVo;

public interface IDistributorRepository {
	
	public DistributorEntity addDistributor(DistributorEntity distributor);
	
	public DistributorEntity findByname(String name);
	
	public DistributorEntity findById(String id);
	
	public List<DistributorEntity> findByShopId(String shopId,PagingVo pvo);
	
	public List<DistributorEntity> findByShopId4Agreement(String shopId);

	DistributorEntity getDistributorByClientId(String clientId);

	/**
	 *
	 * @param shopId
	 * @param isAgree 见ConstantUtil.DISTRIBUTION_NOT_AGREEMENT
	 * @return
	 */
	List<DistributorEntity> getListByShopIdAndAgree(String shopId, String isAgree);

}
